package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    /**
     * 保存操作
     * @param travelComment
     */
    void save(TravelComment travelComment);

    /**
     * 删除操作
     * @param id
     */
    void delete(String id);

    /**
     * 编辑操作
     * @param travelComment
     */
    void update(TravelComment travelComment);

    /**
     * 查一个
     * @param id
     * @return
     */
    TravelComment get(String id);

    /**
     * 查多个
     * @param
     * @return
     */
    List<TravelComment> list();


    Page<TravelComment> queryPageList(TravelCommentQuery qo);


    void commentThumb(String uid, String cid);

    List<TravelComment> comments(TravelCommentQuery qo);
}
